
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>API设计 · book for nxos</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="nxos development team">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://book-os.com" target="_blank" class="custom-link">bookos</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    NXOS文档中心
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" >
            
                <span>
            
                    
                    简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    NXOS 简介
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.2" >
            
                <span>
            
                    
                    快速上手
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.2.1" data-path="../../tutorial/quick-start.html">
            
                <a href="../../tutorial/quick-start.html">
            
                    
                    虚拟平台运行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2.2" data-path="../../tutorial/build-romdisk.html">
            
                <a href="../../tutorial/build-romdisk.html">
            
                    
                    构建romdisk
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3" >
            
                <span>
            
                    
                    内核
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1" data-path="../base/framework.html">
            
                <a href="../base/framework.html">
            
                    
                    整体框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.2" data-path="../base/start.html">
            
                <a href="../base/start.html">
            
                    
                    启动流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.3" data-path="../mm/mm.html">
            
                <a href="../mm/mm.html">
            
                    
                    内存管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.3.1" data-path="../mm/buddy.html">
            
                <a href="../mm/buddy.html">
            
                    
                    buddy伙伴算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.3.2" data-path="../mm/heap.html">
            
                <a href="../mm/heap.html">
            
                    
                    heapCache虚拟内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.3.3" data-path="../mm/vmspace.html">
            
                <a href="../mm/vmspace.html">
            
                    
                    vmspace虚拟地址空间
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.4" data-path="../sched/sched.html">
            
                <a href="../sched/sched.html">
            
                    
                    调度管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.4.1" data-path="../sched/thread.html">
            
                <a href="../sched/thread.html">
            
                    
                    线程管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.4.2" data-path="../sched/smp.html">
            
                <a href="../sched/smp.html">
            
                    
                    SMP多核调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.5" data-path="../process/process.html">
            
                <a href="../process/process.html">
            
                    
                    进程管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.5.1" data-path="../process/syscall.html">
            
                <a href="../process/syscall.html">
            
                    
                    系统调用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.6" data-path="../interrupt/irq.html">
            
                <a href="../interrupt/irq.html">
            
                    
                    中断系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.6.1" data-path="../interrupt/delay_queue.html">
            
                <a href="../interrupt/delay_queue.html">
            
                    
                    延迟队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.7" data-path="../timer/timer.html">
            
                <a href="../timer/timer.html">
            
                    
                    定时器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.4" >
            
                <span>
            
                    
                    内核移植
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.4.1" data-path="../port/riscv/riscv.html">
            
                <a href="../port/riscv/riscv.html">
            
                    
                    riscv架构移植
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.5" >
            
                <span>
            
                    
                    平台支持
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.5.1" data-path="../platform/i386.html">
            
                <a href="../platform/i386.html">
            
                    
                    i386
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.5.2" data-path="../platform/qemu_riscv64.html">
            
                <a href="../platform/qemu_riscv64.html">
            
                    
                    qemu_riscv64
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.5.3" data-path="../platform/k210.html">
            
                <a href="../platform/k210.html">
            
                    
                    k210
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.5.4" data-path="../platform/d1.html">
            
                <a href="../platform/d1.html">
            
                    
                    d1-nezha
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.5.5" data-path="../platform/hifive_unmached.html">
            
                <a href="../platform/hifive_unmached.html">
            
                    
                    hifive unmached
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.6" >
            
                <span>
            
                    
                    用户态服务和驱动框架
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.6.1" data-path="userver.html">
            
                <a href="userver.html">
            
                    
                    用户态服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.6.2" data-path="udriver.html">
            
                <a href="udriver.html">
            
                    
                    用户态驱动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.6.3" data-path="ubpf.html">
            
                <a href="ubpf.html">
            
                    
                    UBPF
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.7" >
            
                <span>
            
                    
                    用户接口
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.1.7.1" data-path="api.html">
            
                <a href="api.html">
            
                    
                    API设计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.8" >
            
                <span>
            
                    
                    编程开发
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.8.1" data-path="../../tutorial/code-style.html">
            
                <a href="../../tutorial/code-style.html">
            
                    
                    代码风格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.2" data-path="../../tutorial/commit-rule.html">
            
                <a href="../../tutorial/commit-rule.html">
            
                    
                    提交规则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.3" data-path="../../tutorial/menuconfig.html">
            
                <a href="../../tutorial/menuconfig.html">
            
                    
                    菜单配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.4" data-path="../../tutorial/toolchains.html">
            
                <a href="../../tutorial/toolchains.html">
            
                    
                    工具链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.5" data-path="../../tutorial/utest.html">
            
                <a href="../../tutorial/utest.html">
            
                    
                    单元测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >API设计</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="api&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x63A5;&#x53E3;">API&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x63A5;&#x53E3;</h1>
<p>&#x672C;&#x6587;&#x6863;&#x5B58;&#x653E;&#x7684;&#x662F;&#x7528;&#x6237;&#x7A0B;&#x5E8F;&#x7684;&#x7F16;&#x7A0B;&#x63A5;&#x53E3;&#x7684;&#x8BBE;&#x8BA1;&#x8BF4;&#x660E;&#x3002;</p>
<p>NXOS&#x7684;API&#x63A5;&#x53E3;&#x5206;&#x4E3A;&#x51E0;&#x4E2A;&#x5927;&#x7C7B;&#x3002;&#x8FDB;&#x7A0B;&#xFF0C;&#x7EBF;&#x7A0B;&#xFF0C;&#x5185;&#x5B58;&#x7BA1;&#x7406;&#xFF0C;&#x65F6;&#x95F4;&#x7BA1;&#x7406;&#xFF0C;&#x67A2;&#x7EBD;&#x7CFB;&#x7EDF;&#xFF0C;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#xFF0C;&#x8BBE;&#x5907;&#x7BA1;&#x7406;&#xFF0C;&#x7F51;&#x7EDC;&#x7BA1;&#x7406;&#xFF0C;&#x56FE;&#x5F62;&#x7BA1;&#x7406;&#xFF0C;&#x5B89;&#x5168;&#x7BA1;&#x7406;&#xFF0C;&#x7528;&#x6237;&#x6001;&#x9A71;&#x52A8;&#x6846;&#x67B6;&#x3002;</p>
<h2 id="&#x8FDB;&#x7A0B;&#x7BA1;&#x7406;">&#x8FDB;&#x7A0B;&#x7BA1;&#x7406;</h2>
<ul>
<li>NX_Error NX_ProcessLaunch(char <em>path, NX_U32 flags, NX_U32 </em>exitCode, char <em>cmd, char </em>env)</li>
<li>void NX_ProcessExit(NX_U32 exitCode)</li>
<li>NX_Error NX_ProcessGetCwd(char * buf, NX_Size length)</li>
<li>NX_Error NX_ProcessSetCwd(char * buf)</li>
</ul>
<h2 id="&#x7EBF;&#x7A0B;&#x7BA1;&#x7406;">&#x7EBF;&#x7A0B;&#x7BA1;&#x7406;</h2>
<ul>
<li>NX_Error NX_ThreadCreate(NX_ThreadAttr <em> attr, NX_U32 (</em>handler)(void <em>), void </em> arg, NX_U32 flags, NX_Solt * outSolt)</li>
<li>void NX_ThreadExit(NX_U32 exitCode)</li>
<li>NX_Error NX_ThreadGetId(NX_Solt solt, NX_U32 * outId)</li>
<li>NX_U32 NX_ThreadGetCurrentId(void)</li>
<li>NX_Error NX_ThreadGetCurrent(NX_Solt * outSolt)</li>
<li>NX_Error NX_ThreadGetProcessId(NX_Solt solt, NX_U32 * outId)</li>
<li>NX_Error NX_ThreadTerminate(NX_Solt solt, NX_U32 exitCode)</li>
<li>NX_Error NX_ThreadSuspend(NX_Solt solt)</li>
<li>NX_Error NX_ThreadResume(NX_Solt solt)</li>
<li>NX_Error NX_ThreadWait(NX_Solt solt, NX_U32 * exitCode)</li>
<li>NX_Error NX_ThreadSleep(NX_UArch microseconds)</li>
<li><p>NX_Error NX_ThreadAttrInit(NX_ThreadAttr * attr, NX_Size stackSize, NX_U32 schedPriority)</p>
</li>
<li><p>int NX_TLsAlloc(void)</p>
</li>
<li>NX_Error NX_TLsFree(int index)</li>
<li>NX_Error NX_TLsSetValue(int index, void * value)</li>
<li>void * NX_TLsGetValue(int index)</li>
<li>void NX_TlsSetExtension(void * data)</li>
<li><p>void * NX_TlsGetExtension(void)</p>
</li>
<li><p>NX_Solt NX_MutexCreate(NX_U32 attr)</p>
</li>
<li>NX_Error NX_MutexDestroy(NX_Solt solt)</li>
<li>NX_Error NX_MutexAcquire(NX_Solt solt)</li>
<li>NX_Error NX_MutexTryAcquire(NX_Solt solt)</li>
<li>NX_Error NX_MutexRelease(NX_Solt solt)</li>
<li>NX_Error NX_MutexAcquirable(NX_Solt solt)</li>
<li>NX_Solt NX_SemaphoreCreate(NX_IArch value)
NX* _Error NX_SemaphoreDestroy(NX_Solt solt)</li>
<li>NX_Error NX_SemaphoreWait(NX_Solt solt)</li>
<li>NX_Error NX_SemaphoreTryWait(NX_Solt solt)</li>
<li>NX_Error NX_SemaphoreSignal(NX_Solt solt)</li>
<li>NX_Error NX_SemaphoreSignalAll(NX_Solt solt)</li>
<li>NX_IArch NX_SemaphoreGetValue(NX_Solt solt)</li>
</ul>
<h2 id="&#x5185;&#x5B58;&#x7BA1;&#x7406;">&#x5185;&#x5B58;&#x7BA1;&#x7406;</h2>
<ul>
<li>void <em> NX_MemMap(void </em> addr, NX_Size length, NX_U32 prot, NX_Error * outErr)</li>
<li>NX_Error NX_MemUnmap(void * addr, NX_Size length)</li>
<li><p>void <em> NX_MemHeap(void </em> addr, NX_Error * outErr)</p>
</li>
<li><p>int NX_PosixBrk(void * addr)</p>
</li>
<li><p>void * NX_PosixSbrk(int increment)</p>
</li>
<li><p>void * NX_MemAlloc(NX_Size size)</p>
</li>
<li>void * NX_MemAllocEx(NX_Size number, NX_Size size)</li>
<li>void <em> NX_MemReAlloc(void </em> p, NX_Size size)</li>
<li>void NX_MemFree(void * ptr)</li>
</ul>
<h2 id="&#x65F6;&#x95F4;&#x7BA1;&#x7406;">&#x65F6;&#x95F4;&#x7BA1;&#x7406;</h2>
<ul>
<li>NX_Error NX_TimeSet(NX_Time * time)</li>
<li>NX_Error NX_TimeGet(NX_Time * time)</li>
<li>NX_TimeVal NX_ClockGetMillisecond(void)</li>
</ul>
<h2 id="&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;">&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;</h2>
<ul>
<li>NX_Error NX_VfsMount(const char <em> dev, const char </em> dir, const char * fsname, NX_U32 flags)</li>
<li>NX_Error NX_VfsUnmount(const char * path)</li>
<li>NX_Error NX_VfsSync(void)</li>
<li>int NX_VfsOpen(const char <em> path, NX_U32 flags, NX_U32 mode, NX_Error </em>outErr)</li>
<li>NX_Error NX_VfsClose(int fd)</li>
<li>NX_U64 NX_VfsRead(int fd, void <em> buf, NX_U64 len, NX_Error </em>outErr)</li>
<li>NX_U64 NX_VfsWrite(int fd, void <em> buf, NX_U64 len, NX_Error </em>outErr)</li>
<li>NX_Error NX_VfsIoctl(int fd, NX_U32 cmd, void *arg)</li>
<li>NX_I64 NX_VfsFileSeek(int fd, NX_I64 off, int whence, NX_Error *outErr)</li>
<li>NX_Error NX_VfsFileSync(int fd)</li>
<li>NX_Error NX_VfsFileChmod(int fd, NX_U32 mode)</li>
<li>NX_Error NX_VfsFileStat(int fd, NX_VfsStatInfo * st)</li>
<li>int NX_VfsOpenDir(const char <em> name, NX_Error </em>outErr)</li>
<li>NX_Error NX_VfsCloseDir(int fd)</li>
<li>NX_Error NX_VfsReadDir(int fd, NX_VfsDirent * dir)</li>
<li>NX_Error NX_VfsRewindDir(int fd)</li>
<li>NX_Error NX_VfsMakeDir(const char * path, NX_U32 mode)</li>
<li>NX_Error NX_VfsRemoveDir(const char * path)</li>
<li>NX_Error NX_VfsRename(const char <em> src, const char </em> dst)</li>
<li>NX_Error NX_VfsUnlink(const char * path)</li>
<li>NX_Error NX_VfsAccess(const char * path, NX_U32 mode)</li>
<li>NX_Error NX_VfsChmod(const char * path, NX_U32 mode)</li>
<li>NX_Error NX_VfsStat(const char <em> path, NX_VfsStatInfo </em> st)</li>
</ul>
<h2 id="&#x7F51;&#x7EDC;&#x7CFB;&#x7EDF;">&#x7F51;&#x7EDC;&#x7CFB;&#x7EDF;</h2>
<p>&#x53C2;&#x8003;socket&#x5957;&#x63A5;&#x5B57;&#x63A5;&#x53E3;&#x8BBE;&#x8BA1;</p>
<h2 id="&#x67A2;&#x7EBD;&#x7CFB;&#x7EDF;">&#x67A2;&#x7EBD;&#x7CFB;&#x7EDF;</h2>
<ul>
<li>NX_Error NX_HubRegister(const char *name, NX_Size maxClient);</li>
<li>NX_Error NX_HubUnregister(const char *name);</li>
<li>NX_Error NX_HubCallParam(NX_Hub <em>hub, NX_HubParam </em>param, NX_Size *retVal);</li>
<li>NX_Error NX_HubCallParamName(const char <em>name, NX_HubParam </em>param, NX_Size *retVal);</li>
<li>NX_Error NX_HubReturn(NX_Size retVal, NX_Error retErr);</li>
<li>NX_Error NX_HubPoll(NX_HubParam *param);</li>
<li>void <em>NX_HubTranslate(void </em>addr, NX_Size size);</li>
<li>NX_Error NX_HubDispatch(NX_HubParam *param, NX_HubHandler handlerTable[], NX_Size tableSize);</li>
<li>NX_Error NX_HubLoop(NX_HubHandler handlerTable[], NX_Size tableSize);</li>
</ul>
<h2 id="&#x8BBE;&#x5907;&#x63A5;&#x53E3;">&#x8BBE;&#x5907;&#x63A5;&#x53E3;</h2>
<ul>
<li>NX_Solt NX_DeviceOpen(const char * name, NX_U32 flags);</li>
<li>NX_Size NX_DeviceRead(NX_Solt solt, void *buf, NX_Offset off, NX_Size len);</li>
<li>NX_Size NX_DeviceWrite(NX_Solt solt, void *buf, NX_Offset off, NX_Size len);</li>
<li>NX_Error NX_DeviceControl(NX_Solt solt, NX_U32 cmd, void *arg);</li>
<li><h1 id="define-nxdeviceclosesolt-nxsoltclosesolt">define NX_DeviceClose(solt) NX_SoltClose(solt)</h1>
</li>
<li>void * NX_DeviceMap(NX_Solt solt, NX_Size length, NX_U32 prot);</li>
</ul>
<h2 id="&#x4FE1;&#x53F7;&#x63A5;&#x53E3;">&#x4FE1;&#x53F7;&#x63A5;&#x53E3;</h2>
<ul>
<li>NX_Error NX_SignalSend(NX_U32 tid, NX_Signal signal, void * signalValue);</li>
<li>NX_Error NX_SignalGetAttr(NX_Signal signal, NX_SignalAttr * outAttr);</li>
<li>NX_Error NX_SignalSetAttr(NX_Signal signal, NX_SignalAttr * attr);</li>
<li><p>NX_Error NX_SignalContorl(NX_Signal signalFirst, NX_Signal signalLast, NX_U32 cmd);</p>
</li>
<li><p>NX_Error NX_SignalInitAttr(NX_SignalAttr * attr, NX_SignalHandler handler, NX_U32 flags);</p>
</li>
</ul>
<h2 id="&#x5B9A;&#x65F6;&#x5668;">&#x5B9A;&#x65F6;&#x5668;</h2>
<ul>
<li>NX_Solt NX_TimerCreate(NX_UArch milliseconds, void (<em>handler)(void </em>arg), void *arg, NX_U32 flags);</li>
<li>NX_Error NX_TimerStart(NX_Solt solt);</li>
<li>NX_Error NX_TimerStop(NX_Solt solt);</li>
</ul>
<h2 id="&#x56FE;&#x5F62;&#x7CFB;&#x7EDF;">&#x56FE;&#x5F62;&#x7CFB;&#x7EDF;</h2>
<h2 id="&#x5B89;&#x5168;&#x7BA1;&#x7406;">&#x5B89;&#x5168;&#x7BA1;&#x7406;</h2>
<h2 id="&#x7528;&#x6237;&#x6001;&#x9A71;&#x52A8;&#x6846;&#x67B6;">&#x7528;&#x6237;&#x6001;&#x9A71;&#x52A8;&#x6846;&#x67B6;</h2>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"API设计","level":"1.1.7.1","depth":3,"next":{"title":"编程开发","level":"1.1.8","depth":2,"ref":"","articles":[{"title":"代码风格","level":"1.1.8.1","depth":3,"path":"tutorial/code-style.md","ref":"tutorial/code-style.md","articles":[]},{"title":"提交规则","level":"1.1.8.2","depth":3,"path":"tutorial/commit-rule.md","ref":"tutorial/commit-rule.md","articles":[]},{"title":"菜单配置","level":"1.1.8.3","depth":3,"path":"tutorial/menuconfig.md","ref":"tutorial/menuconfig.md","articles":[]},{"title":"工具链","level":"1.1.8.4","depth":3,"path":"tutorial/toolchains.md","ref":"tutorial/toolchains.md","articles":[]},{"title":"单元测试","level":"1.1.8.5","depth":3,"path":"tutorial/utest.md","ref":"tutorial/utest.md","articles":[]}]},"previous":{"title":"用户接口","level":"1.1.7","depth":2,"ref":"","articles":[{"title":"API设计","level":"1.1.7.1","depth":3,"path":"programing-manual/user/api.md","ref":"programing-manual/user/api.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy BookOS-developers 2022","modify_label":"修订时间：","modify_format":"YYYY-MM-DD"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"nxos development team","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"book for nxos","language":"zh-hans","links":{"sidebar":{"bookos":"http://book-os.com"}},"gitbook":"3.2.3","description":"document for nxos kernel"},"file":{"path":"programing-manual/user/api.md","mtime":"2022-06-21T13:54:32.024Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-06-21T14:02:23.265Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

